
import  axios  from '../utils/request'

export async function getCodeImage(){
    const res=await axios.get('/getCode')
    return res
}
export async function login(data:any){
    const res=await axios.post('/login',data)
    return res
}

export async function register(data:any){
    const res=await axios.post('/register',data)
    return res
}
export async function getAdminInfo(id:any){
    const res=await axios.get('adminInfo',{params:{id}})
    return res
 }
